//
//  LN_ZodiacView.m
//  NewProject
//
//  Created by apple on 2018/6/2.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "LN_ZodiacView.h"

@implementation LN_ZodiacView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


- (IBAction)zodiacAction:(UIButton *)sender {
    for (UIButton* button in self.buttonBoxView.subviews) {
        button.layer.borderColor = [UIColor whiteColor].CGColor;
    }
    
    sender.layer.borderColor = [UIColor redColor].CGColor;
    sender.layer.borderWidth = 2;
    
    if (self.callbackBlock) {
        self.callbackBlock(sender.tag);
    }
}


@end
